const getters = {
  sidebar: (state) => state.app.sidebar,
  device: (state) => state.app.device,
  token: (state) => state.user.token,
  //avatar: state => state.user.avatar,
  name: state => state.user.name,
  userId: (state) => state.user.userInfo.userId, //增加userId，用于在主页鉴权中判断是否已经获取过登录用户信息
  avatar: (state) => state.user.userInfo.staffPhoto,
  username: (state) => state.user.userInfo.username,
};
export default getters;
